package test3;

public class NormalUser extends User 
{
   
   /**
    * @roseuid 658E8F5A002F
    */
   public NormalUser() 
   {
      this.theDiscount = new NoDiscount();
   }

   @Override
   void calculatePrice(Room room) {
      System.out.println("NormalUser:");
      String Old = "原价为："+room.getPrice()+" 元";
      String New = "应付为："+room.getPrice()*this.theDiscount.getDiscount()+" 元";
      System.out.println(Old);
      System.out.println(New);
   }
}
